﻿@model Web.Models.PageContentData
<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script type="text/javascript" src="../../Content/richTextEditor/nicEdit.js"></script>
<script type="text/javascript">
    bkLib.onDomLoaded(function () { nicEditors.allTextAreas() });
</script>
@using (Html.BeginForm())
{

    if (ViewBag.ActionResult != null)
    {
    <div class="ResultOk">@ViewBag.ActionResult</div>
    }
        
    <div class="ResultError">@Html.ValidationSummary(true)</div>
    @Html.HiddenFor(m => m.Id) 
    @Html.TextAreaFor(m => m.Content, new { @style = "width: 100%; min-height: 300px;" })
    <p>
        <input type="submit" value="Zapisz" />
    </p>
}
